package com.kcht.np.vo.dict;

import lombok.*;

import javax.validation.constraints.*;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class DictDataCanModifyInfo {
    @NotNull
    private Long id;
    /*字典标签*/
    @Size(min = 1, message = "字典标签长度不能少于1位")
    private String dictLabel;
    /*字典键值*/
    @Pattern(regexp = "^[a-zA-Z0-9_\\-]*$",message = "字典键值命名不正确")
    private String dictValue;
    /*字典排序的序号*/
    private Integer dictSort=0;
    /*字典状态*/
    @Max(value = 1,message = "状态只能为0【开启】，1【关闭】")
    @Min(value = 0,message = "状态只能为0【开启】，1【关闭】")
    private Integer status;
    /*描述*/
    @Size(min = 1, message = "字典描述不能少于1位")
    private String comment;
}
